package com.woniuxy.light_smart.mapper;

import com.woniuxy.light_smart.dto.ApplicationDto;
import com.woniuxy.light_smart.entity.ApplicationRole;
import com.woniuxy.light_smart.entity.UserRole;

import java.util.List;

/**
* @author wts
* @description 针对表【application_role】的数据库操作Mapper
* @createDate 2022-12-14 09:15:09
* @Entity com.woniuxy.light_smart.entity.ApplicationRole
*/
public interface ApplicationRoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(ApplicationRole record);

    int insertSelective(ApplicationRole record);

    ApplicationRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ApplicationRole record);

    int updateByPrimaryKey(ApplicationRole record);

    Integer insertOne(ApplicationDto applicationDto);

    List<ApplicationRole> selectAppRoleOne();

    List<UserRole> selectAllUserRole(Integer userId);

    int deleteUserRole(Integer userId);

    int insertUserRole(Integer userId, List<Integer> roles);


    List<ApplicationRole> selectAllApplication(Integer userId, Integer areaId, List<Integer> checkRole);
}
